<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<title>报名信息管理</title>
	<div th:insert="common::head"></div>
</head>

<body class="">
<div class="wrapper ">
	<div th:insert="~{common::sidebar(active='signups.html')}"></div>
	<div class="main-panel">
		<!-- Navbar导航栏 -->
		<nav th:replace="~{common::navbar}"></nav>
		<!--搜索栏-->
		<div class="panel-header">
			<form id="search_form" th:action="@{/admin/testlog/search}">
				<div class="header text-center">
					<h2 class="title">报名信息</h2>
					<div class="input-group no-border col-sm-4 offset-4">
						<input type="text" name="search" class="form-control" th:placeholder="${msg==null?'姓名或学号...':msg}">
						<span class="input-group-addon">
                            <i class="now-ui-icons ui-1_zoom-bold" onclick="$('#search_form').submit()"></i>
                        </span>
					</div>
					<p class="category">检索报名信息,支持姓名模糊查询,学号精确查询。</p>
				</div>
			</form>
		</div>
		<div class="content">
			<div class="row">
				<div class="col-md-12">
					<div class="card">
						<div class="card-header">
							<h4 class="card-title">报名记录</h4>
						</div>
						<div class="card-body">
							<div class="table-responsive">
								<table class="table">
									<thead class="text-primary">
									<th>准考证号</th>
									<th>学生姓名</th>
									<th>学生学号</th>
									<th>身份证号</th>
									<th>报名等级</th>
									<th>考试院校</th>
									<th>报名时间</th>
									<th>操作</th>
									</thead>
									<tbody>
									<tr th:each="log:${testLogs}">
										<td th:text="${log.getCetnum()}"></td>
										<td th:text="${log.getName()}"></td>
										<td th:text="${log.getStunum()}"></td>
										<td th:text="${log.getStuid()}"></td>
										<td th:text="${log.getCetlevel()}"></td>
										<td th:text="${log.getTestschool()}"></td>
										<td th:text="${#dates.format(log.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}"></td>
										<td>
											<a class="btn btn-sm btn-danger" th:href="@{/admin/toSignups/deleteLog/}+${log.getCetnum()}">删除</a>
										</td>
									</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--底部footer-->
		<footer th:replace="~{common::footer}"></footer>
	</div>
</div>
</body>

<!--通用footerJs-->
<script th:replace="~{common::footerJs}"></script>

</html>
